<!--
 * @Author: 如此 byte_hi@qq.com
 * @Date: 2025-06-28 14:29:01
 * @LastEditors: 如此 byte_hi@qq.com
 * @LastEditTime: 2025-06-28 16:41:44
 * @FilePath: \奢妮美-签到\pages\index\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <view class="content">
    <image class="logo" src="/static/logo.png"></image>
    <view class="text-area">
      <text class="title">{{ title }}</text>
    </view>
    <!-- 添加跳转按钮 -->
    <button @click="goTo('/pages/index/album')">跳转到 Album 页面</button>
    <button @click="goTo('/pages/index/sign')">跳转到 签到 页面</button>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title: "Hello",
    };
  },
  onLoad() {},
  methods: {
    // 定义跳转方法
    goTo(page) {
      // 使用 uni.navigateTo 跳转到 album 页面
      uni.navigateTo({
        url: page,
      });
    },
  },
};
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
